<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {if $auth->city_id == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_id" data-rule="required" data-source="general/lihua_city/index" data-order-by="weigh desc" class="form-control selectpage" name="row[city_id]" type="text" value="">
        </div>
    </div>
    {else}
    <input name="row[city_id]" type="hidden" value="{$auth->city_id}">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required;length(~30)" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" data-rule="length(~20)" class="form-control" name="row[tel]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addr" data-rule="length(~100)" class="form-control" name="row[addr]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">门店坐标:</label>
        <div class="col-xs-12 col-sm-8" style="position:relative;">
            <input id="c-point" class="form-control" name="point" data-rule="required" type="text" readonly value="">
            <button type="button" id="selPoint" style="position:absolute;top:5px;right:20px;" class="btn btn-xs btn-info" title="选取门店坐标">选取坐标</button>
        </div>
    </div>
    <input id="c-lng" name="row[lng]" type="hidden" value="">
    <input id="c-lat" name="row[lat]" type="hidden" value="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8" style="position:relative;">
            <textarea id="c-area" class="form-control" rows="5" name="row[area]" cols="50" readonly></textarea>
            <button type="button" id="selArea" data-id="0" style="position:absolute;top:5px;right:20px;" class="btn btn-xs btn-info" title="选取配送区域">选取区域</button>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manager')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manager" data-rule="length(~20)" class="form-control" name="row[manager]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manager_tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manager_tel" data-rule="mobile" class="form-control" name="row[manager_tel]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <div class="text-center">
            <button type="submit" class="btn btn-success btn-embossed disabled">提交</button>
            <button type="button" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">关闭</button>
        </div>
    </div>
</form>
